package com.zr.beijian.JPARepository;

import com.zr.beijian.bean.BeiJian;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;

import java.util.List;

public interface BeiJianJapRepository extends JpaRepository<BeiJian,Integer>, QueryDslPredicateExecutor<BeiJian> {
    BeiJian findBeiJianByCode(String code);
    BeiJian findBeiJianByName(String name);
    List<BeiJian> findBeiJianByCodeContainsAndNameContainsAndState(String code,String name,int state);
}
